﻿using System;
using System.Linq;

/*
    Write a program that gets two numbers from the console and prints the greater of them.
    Try to implement this without if statements.
 */
class NumberComparer
{
    static void Main()
    {
        double fNumber;
        double sNumber;
        Console.Write("Enter first number: ");
        fNumber = double.Parse(Console.ReadLine());
        Console.Write("Enter second number: ");
        sNumber = double.Parse(Console.ReadLine());

        Console.WriteLine("The bigger number is: " + Math.Max(fNumber, sNumber));

        //while loop
        //while (fNumber > sNumber)
        //{
        //    Console.WriteLine("First number({0}) is bigger second number({1})", fNumber, sNumber);
        //    return;
        //}
        //Console.WriteLine("Second Number({0}) is bigger than first number({1})", sNumber, fNumber);
    }
}
